package fi.ixonos.projects.logic.service.impl;

import fi.ixonos.projects.logic.bean.Message;
import fi.ixonos.projects.logic.dao.GenericDAO;
import fi.ixonos.projects.logic.dao.MessagesDAO;

import fi.ixonos.projects.logic.service.AbstractGenericService;
import fi.ixonos.projects.logic.service.MessageService;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 *
 * @author katrami
 * @date Oct 14, 2010
 */
@Service("messageService")
public final class MessagesServiceImpl extends AbstractGenericService<Message> implements MessageService {

    @Resource
    protected MessagesDAO messagesDAO;

    @Autowired
    @Override
    public void setServiceDAO(@Qualifier("messageDAO") GenericDAO genericDAO) {
        super.setServiceDAO(genericDAO);
    }
}
